{extend name="public/base" /}
{block name="css"}
<style>
  .pagination {
    justify-content: center;
    display: inline-block;
    padding-left: 0;
    border-radius: 4px;
    display: flex;
    padding-left: 0;
    margin: 30px 0 10px;
    border-radius: 4px;
  }

  .pagination > li:nth-child(1){
    border: 1px solid #eee;
  }

  .pagination > li {
    padding: 0 10px 2px;
    border: 1px solid #eee;
    border-left: 0px;
  }

  .pagination .disable span{
    font-size: 12px;
    color: #eee;
  }

  .pagination .active{
    color: #fff;
    background: #93412C;
  }

  .pagination .active span{
    font-size: 12px;
    color: #fff;
    background: #93412C;
  }

  .pagination > li > a {
    font-size: 12px;
    color: #93412C;
  }

  .single-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .multi-2-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .tag > span {
    margin-right: 5px;
  }
</style>
{/block}
{block name="main"}
<section class="container-fluid">
  <div style="text-align: center;background: #ffffff;padding: 0 0px 5px 0">
    <img style="width: 100%" src="https://u-res.oss-cn-chengdu.aliyuncs.com/web/UJGC/article/mobile/banner_zxzs.png" />

    <div style="color: #333333;display: flex;margin: 15px 15px 0"><a href="{$Request.root.true}" style="color: #333333">首页</a> <span
        style="color: #999999;margin: 0 6px 0 10px"> ></span><a href="{$Request.root}/baike.html" style="color: #333333">软装百科</a>
      {switch category}
      {case rzdp}<span
          style="color: #999999;margin: 0 6px 0 10px"> ></span>软装搭配{/case}
      {case qwdz}<span
          style="color: #999999;margin: 0 6px 0 10px"> ></span>全屋定制{/case}
      {case jzgz}<span
          style="color: #999999;margin: 0 6px 0 10px"> ></span>精装改造{/case}
      {case rzzs}<span
          style="color: #999999;margin: 0 6px 0 10px"> ></span>软装知识{/case}
      {default /}
      {/switch}</div>

    <div class="content" style="padding: 20px 15px 0">
      {volist name="list" id="v"}
      <div onclick="window.location.href='{$Request.root}/baike/detail/{$v.id}.html'" class="item" style="display: flex">
        <img style="width: 8rem;min-width:8rem;min-height:8rem;height:8rem;object-fit: cover" src="{$v.cover}" />
        <div style="overflow: hidden;display: flex;flex-direction: column;justify-content: space-between;margin-left: 10px">
          <div style="display: flex;flex-direction: column;overflow: hidden">
            <div class="single-text" style="text-align: left;font-size: 17px;font-weight: bold;color: #333333">{$v.title}</div>
            <div class="multi-2-text" style="line-height: 20px;color: #666;">{$v.summary}</div>
          </div>
          <div class="tag" style="display: flex;justify-content: flex-start">
              {volist name="v.tag" id="tag"}
              <span style="background: #93412C;border-radius: 12px;padding: 2px 4px;width: fit-content;color: #fff;font-size: 12px">{$tag}</span>
              {/volist}
          </div>
          <div style="text-align: left">分类:
            <a style="color: #333333;text-decoration: underline" href="{$Request.root}/baike/{$v.category|getBaikeCode}.html">{$v.category|getBaikeName}</a>
          </div>
        </div>
      </div>
      <hr style="margin: 20px 0;border: 0;height: 1px;background: #ccc">
      {/volist}
    </div>

    <div style="margin-bottom: 20px">
      {$page|raw}
    </div>

  </div>

</section>
{/block}
{block name="js"}
<script>
  $('#nav').find('ul > li').eq(5).addClass('nav-active');
  $("#nav").scrollLeft(65*5);
</script>
{/block}